import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/outsource/basicInformation/material/list',
    method: 'post',
    data: data
  })
}
export function outsourcePriceList(data) {
  return request({
    url: '/wms/material/list',
    method: 'post',
    data: data
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/outsource/basicInformation/material/addOrEdit',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/outsource/basicInformation/material/' + data,
    method: 'get'
  })
}
export function remove(data) {
  return request({
    url: '/outsource/basicInformation/material/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function getProcessInfoByMaterialId(data) {
  return request({
    url: '/engineering/process/getProcessInfoByMaterialId/' + data,
    method: 'get'
  })
}
